package cn.buk.tms.sc;

import cn.buk.common.sc.AbstractSearchCriteria;
import cn.buk.common.util.DateUtil;

import java.util.Date;

public class SearchQinfoCriteria extends AbstractSearchCriteria {

	private Date fromDate = DateUtil.getCurDate();
	private Date toDate = DateUtil.getCurDate();
	private String qtype ="ALL";
	private String qstatus ="-1";
	private String username = "";
	private String pnrNo = "";
	
	/**
	 * @return the fromDate
	 */
	public Date getFromDate() {
		return fromDate;
	}
	/**
	 * @param fromDate the fromDate to set
	 */
	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}
	/**
	 * @return the toDate
	 */
	public Date getToDate() {
		return toDate;
	}
	/**
	 * @param toDate the toDate to set
	 */
	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}
	/**
	 * @return the qtype
	 */
	public String getQtype() {
		return qtype;
	}
	/**
	 * @param qtype the qtype to set
	 */
	public void setQtype(String qtype) {
		this.qtype = qtype;
	}
	/**
	 * @return the qstatus
	 */
	public String getQstatus() {
		return qstatus;
	}
	/**
	 * @param qstatus the qstatus to set
	 */
	public void setQstatus(String qstatus) {
		this.qstatus = qstatus;
	}
	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}
	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	public String getPnrNo() {
		return this.pnrNo == null ? "": this.pnrNo;
	}

	public void setPnrNo(String pnrNo) {
		this.pnrNo = pnrNo;
	}
}
